package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author ShouPeng
 * @since 2024-01-14
 * 商品实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mall_goods")
public class Goods implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String goodsId;

//    @ApiModelProperty(value = "商品名称")
    private String goodsName;

//    @ApiModelProperty(value = "商品描述")
    private String goodsDesc;

//    @ApiModelProperty(value = "商品图片")
    private String goodsCover;

//    @ApiModelProperty(value = "商品详细介绍")
    private String goodsContent;

//    @ApiModelProperty(value = "商品价格")
    private Double goodsPrice;

//    @ApiModelProperty(value = "商品库存")
    private Integer goodsLeft;

//    @ApiModelProperty(value = "是否上架")
    private Boolean goodsIsSale;

//    @ApiModelProperty(value = "上架的用户ID")
    private String goodsCreateUserId;

//    @ApiModelProperty(value = "创建时间")
    private String goodsCreateTime;

//    @ApiModelProperty(value = "分类ID")
    private String goodsCategoryId;

    //    @ApiModelProperty(value = "商品内容markdown格式")
    private String goodsContentMarkdown;

    //    @ApiModelProperty(value = "是否删除")
    private Boolean isDelete;

}
